package lgs.hm.homework.work1;

import org.springframework.stereotype.Component;

@Component //自动扫描注入，调用空参构造器初始化加入容器
public class Water {
	
	private String brand="百岁山";
	private String origin="喜马拉雅山";
	
	public Water() {}

	public Water(String brand, String origin) {
		super();
		this.brand = brand;
		this.origin = origin;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	@Override
	public String toString() {
		return "Water [brand=" + brand + ", origin=" + origin + "]";
	}
	
	

}
